﻿<UserControl x:Class="QWeiBoN.PopupCotainer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="800" Width="480">

    <Grid x:Name="LayoutRoot">
        <Rectangle x:Name="mask" Fill="{StaticResource PhoneForegroundBrush}" Opacity="0" MouseLeftButtonDown="mask_MouseLeftButtonDown"/>
        <Grid x:Name="popupArea" VerticalAlignment="Top">
            <Grid.RenderTransform>
                <CompositeTransform x:Name="popupTransform"/>
            </Grid.RenderTransform>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="32"/>
            </Grid.RowDefinitions>
            <Grid x:Name="contentArea" Background="{StaticResource PhoneBackgroundBrush}"/>
            <Rectangle x:Name="shadow" Grid.Row="1" Height="32">
            	<Rectangle.Fill>
            		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            			<GradientStop Color="#FF202020" Offset="0"/>
                        <GradientStop Offset="1" Color="#00202020"/>
            		</LinearGradientBrush>
            	</Rectangle.Fill>
            </Rectangle>
        </Grid>
    </Grid>
</UserControl>
